package com.lovo.controller;

import com.lovo.bean.ChannelBean;
import com.lovo.sercive.IChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("channel")
public class ChannelController {
    @Autowired
    private IChannelService service;

    @RequestMapping("findAll")
    public List<ChannelBean> findAll(){
        return service.findAllChannel();
    }

}
